<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page isELIgnored="false"%>
<%@ page import="cn.e2win.biz.util.StringUtils"%>
<%@ page import="cn.e2win.biz.util.DateUtils"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!-- SESSION_START{success:true,msg:'登录成功！'}SESSION_END -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>${USER.coName} 综合管理系统</title>
<link href="themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
<link href="themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
<link href="uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->
<link rel="stylesheet" href="themes/base/jquery.ui.all.css" type="text/css" />
<script language="javascript" src="js/LodopFuncs.js"></script>
<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
<script language="javascript">



Date.prototype.format =function(format)
{
	var o = {
	"M+" : this.getMonth()+1, //month
	"d+" : this.getDate(), //day
	"h+" : this.getHours(), //hour
	"m+" : this.getMinutes(), //minute
	"s+" : this.getSeconds(), //second
	"q+" : Math.floor((this.getMonth()+3)/3), //quarter
	"S" : this.getMilliseconds() //millisecond
	}
	if(/(y+)/.test(format)) format=format.replace(RegExp.$1,
	(this.getFullYear()+"").substr(4- RegExp.$1.length));
	for(var k in o)if(new RegExp("("+ k +")").test(format))
	format = format.replace(RegExp.$1,
	RegExp.$1.length==1? o[k] :
	("00"+ o[k]).substr((""+ o[k]).length));
	return format;
};

getCustomer = function( request, response ) {
	$.ajax({
		url: "crm/customer/getCustomerList.do",
		dataType: "json",
		data:{
			custName_L: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						label:item.custName,
						value:item.custName,
						id:item.id,
						address:item.address,
						cellPhone:item.cellPhone,
						contact:item.contact,
						fax:item.fax,
						tel:item.tel
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};

getSupplier = function( request, response ) {
	$.ajax({
		url: "srm/supplier/getSupplierList.do",
		dataType: "json",
		data:{
			supplierName_L: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						label:item.supplierName,
						value:item.supplierName,
						id:item.id,
						address:item.address,
						cellPhone:item.cellPhone,
						contact:item.contact,
						fax:item.fax,
						tel:item.tel
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};
getProdInfo = function( request, response ) {
	$.ajax({
		url: "prod/getProdInfoList.do",
		contentType:'application/x-www-form-urlencoded; charset=UTF-8',
		type:'POST',
		dataType: "json",
		data:{
			prodDesc_L: request.term
		},
		success: function(data) {
            if (data != null && data != '') {
				response($.map(data, function(item) {
					return {
						label:item.prodDesc,
						value:item.prodDesc,
						id:item.id,
						prodId:item.prodId,
						prodTypeId:item.prodTypeId
                    }
		 		}
			)); 
		}else{
        	//alert("what's happing?");
        }
	 }
 });
};


function preview(id){
	LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单一");
	var html = document.getElementById(id).innerHTML;
	html = html.replace('yyyy-mm-dd', new Date().format("yyyy-MM-dd hh:mm:ss"));
	LODOP.ADD_PRINT_HTM(20,20,"100%","100%",html);

	//LODOP.ADD_PRINT_BARCODE(5,20,300,37,"EAN128B","XS1000000033");
	//LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
	//LODOP.ADD_PRINT_BARCODE(330,80,168,168,"QRCode","1234567890版本7的最大值是122个字符123123");
	
	LODOP.PREVIEW();
}
</script>
    
<script src="js/speedup.js" type="text/javascript"></script>
<script src="js/jquery-1.7.2.js" type="text/javascript"></script>
<!-- <script src="js/jquery.cookie.js" type="text/javascript"></script> -->
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.bgiframe.js" type="text/javascript"></script>

<script src="js/ui/jquery.ui.core.min.js"></script>
<script src="js/ui/jquery.ui.widget.min.js"></script>
<script src="js/ui/jquery.ui.position.min.js"></script>
<script src="js/ui/jquery.ui.menu.min.js"></script>
<script src="js/ui/jquery.ui.autocomplete.min.js"></script>
<script src="js/ui/jquery.ui.autocomplete.min.js"></script>
<script src="js/ui/jquery-ui.custom.min.js"></script>




<script src="xheditor/xheditor-1.1.12-zh-cn.min.js" type="text/javascript"></script>
<script src="uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="uploadify/scripts/jquery.uploadify.js" type="text/javascript"></script>

<script src="js/dwz.core.js" type="text/javascript"></script>
<script src="js/dwz.util.date.js" type="text/javascript"></script>
<script src="js/dwz.validate.method.js" type="text/javascript"></script>
<script src="js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="js/dwz.barDrag.js" type="text/javascript"></script>
<script src="js/dwz.drag.js" type="text/javascript"></script>
<script src="js/dwz.tree.js" type="text/javascript"></script>
<script src="js/dwz.accordion.js" type="text/javascript"></script>
<script src="js/dwz.ui.js" type="text/javascript"></script>
<script src="js/dwz.theme.js" type="text/javascript"></script>
<script src="js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="js/dwz.navTab.js" type="text/javascript"></script>
<script src="js/dwz.tab.js" type="text/javascript"></script>
<script src="js/dwz.resize.js" type="text/javascript"></script>
<script src="js/dwz.dialog.js" type="text/javascript"></script>
<script src="js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="js/dwz.cssTable.js" type="text/javascript"></script>
<script src="js/dwz.stable.js" type="text/javascript"></script>
<script src="js/dwz.taskBar.js" type="text/javascript"></script>
<script src="js/dwz.ajax.js" type="text/javascript"></script>
<script src="js/dwz.pagination.js" type="text/javascript"></script>
<script src="js/dwz.database.js" type="text/javascript"></script>
<script src="js/dwz.datepicker.js" type="text/javascript"></script>
<script src="js/dwz.effects.js" type="text/javascript"></script>
<script src="js/dwz.panel.js" type="text/javascript"></script>
<script src="js/dwz.checkbox.js" type="text/javascript"></script>
<script src="js/dwz.history.js" type="text/javascript"></script>
<script src="js/dwz.combox.js" type="text/javascript"></script>
<script src="js/dwz.print.js" type="text/javascript"></script>
<!--
<script src="bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
	$(function() {
		DWZ.init("dwz.frag.xml", {
			//loginUrl:"login_dialog.html", loginTitle:"登录",	// 弹出登录对话框
			loginUrl : "index.html", // 跳到登录页面
			statusCode : {
				ok : 200,
				error : 300,
				timeout : 301
			}, //【可选】
			pageInfo : {
				pageNum : "pageNum",
				numPerPage : "numPerPage",
				orderField : "orderField",
				orderDirection : "orderDirection"
			}, //【可选】
			debug : false, // 调试模式 【true|false】
			callback : function() {
				initEnv();
				$("#themeList").theme({themeBase:"themes"}); // themeBase 相对于index页面的主题base路径
			}
		});
		//默认载项目
});
</script>
</head>
<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="javascript:;">标志</a>
				<ul class="nav">
					<!--
					<li id="switchEnvBox"><a href="javascript:">（<span>北京</span>）切换城市</a>
						<ul>
							<li><a href="sidebar_1.html">北京</a></li>
							<li><a href="sidebar_2.html">上海</a></li>
							<li><a href="sidebar_2.html">南京</a></li>
							<li><a href="sidebar_2.html">深圳</a></li>
							<li><a href="sidebar_2.html">广州</a></li>
							<li><a href="sidebar_2.html">天津</a></li>
							<li><a href="sidebar_2.html">杭州</a></li>
						</ul>
					</li>
					<li><a href="http://www.beetlesoft.net" target="_blank">帮助</a></li>
					-->
					<li><a href="javascript:;">欢迎您,${USER.userName}</a></li>
					<li><a href="user/user/toChangePassword.do" target="dialog" width="600">更改密码</a></li>
					<li><a href="comm/download/-1.do">打印组件</a></li>
					<li><a href="j_spring_security_logout">退出</a></li>
					<li><a href="comm/download/0.do">帮助</a></li>
				</ul><!-- 
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="red"><div>红色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul> -->
			</div>

			<!-- navMenu -->

		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse">
						<div></div>
					</div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse">
					<h2>主菜单</h2>
					<div>收缩</div>
				</div>


				<div class="accordion" fillSpace="sidebar">
				
					<c:forEach items="${menuList}" var="menu">
					    <c:if test="${menu.hasItems == true }">
						    <div class="accordionHeader">
								<h2><span>Folder</span>${menu.title }</h2>
							</div>
							<div class="accordionContent">
							<ul class="tree">
							    <c:forEach items="${menu.functionList}" var="function">
									<li><a href="${function.url}" target="navTab" rel="listView_${function.id}" reloadFlag=1>${function.title}</a></li>
							    </c:forEach>
							</ul>
						    </div>
						</c:if>
					</c:forEach>
					
				</div>
				
			</div>
		</div>


		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent">
						<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span
										class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div>
					<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div>
					<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
							<div class="alertInfo">
							</div>
							<div class="right">
								
							</div>
						</div>
						<div class="pageFormContent" layoutH="80" style="margin-right:230px">
							
<p>Tags:<input id="tags"></input></p>
	
	

<p>City:<input type="text" name="city" id="city" value="" /></p>
<p>State:<input type="text" name="state" id="state" value="" /></p>
<p>ZIP:<input type="text" name="zip" id="zip" value="" /></p> 

						</div>
						
						<div style="width:230px;position: absolute;top:60px;right:0" layoutH="80">
							
						</div>
					</div>
					
				</div>
			</div>
		</div>

	</div>
	<div id="footer">Copyright &copy; 2014 武汉新创芯科技有限责任公司</div>
</body>
</html>